<%@include file="no_banner_header.jsp" %>
<div class="content_bar">CHANGE YOUR PASSWORD</div>
<div class="break_line"></div>
<div class="break_line"></div>
<% if (request.getSession().getAttribute("changePassError") != null) {%>
<div class="closable notification error" style="width: 475px;margin-left: 8px;">
    <%
        List error = (List) request.getSession().getAttribute("changePassError");
        for (Object x : error) {
            out.println(x);
        }
    %>
</div>
<%}
    if (customer == null) {
        response.sendRedirect("index.jsp");
    }
%>
<div>
    <form action="../changepass" method="post">
        <div class="form_label">Old password:</div>
        <div class="form_field">
            <input type="password" class="textboxEffect" id="old_password" name="old_password" size="35" maxlength="100" value="<%=request.getSession().getAttribute("old_password") != null ? request.getSession().getAttribute("password") : ""%>" />
            <span class="style4">*</span>    
        </div>
        <div class="break_line"></div>
        <div class="form_label"> New password:</div>
        <div class="form_field">
            <input type="password" class="textboxEffect" id="new_password" name="new_password" size="35" maxlength="100" value="<%=request.getSession().getAttribute("new_password") != null ? request.getSession().getAttribute("password") : ""%>" />
            <span class="style4">*</span>    
        </div>
        <div class="break_line"></div>
        <div class="form_label">Confirm new password:</div>
        <div class="form_field">
            <input type="password" class="textboxEffect" id="conf_new_pass" name="conf_new_pass" size="35" maxlength="100" value="<%=request.getSession().getAttribute("conf_new_pass") != null ? request.getSession().getAttribute("conf_pass") : ""%>" />
            <span class="style4">*</span>    
        </div>
        <div class="break_line"></div>
        <div class="form_label">&nbsp;</div>
        <div class="form_field" style="margin-bottom: 20px;float: left;">          
            <input type="submit" name="change_pass" value="CHANGE" class="submit" />
        </div>
    </form>
</div>                                       

<div style="clear: both;">&nbsp;</div>
<%@include file="footer.jsp" %>